
for i in range(11,1000):

    for j in range(2,i):
        if i % j==0 :

            break;
    # if k == 0:
    #     print(f'{i}')
    else:
        a=i // 100
        b=i//10 %10
        c=i % 10
        if (i < 100 and i == c * 10 + b):
            print(f'{i}')
        if i==c*100+b*10+a :
            print(f'{i}')
    """
    i=str[i]
    
    i==i[::-1] 倒序
    if i==i[::-1]:
       print(f'{i}')
    """